package com.itheima.service;

import com.itheima.common.R;
import com.itheima.admin.pojo.Dish;

import java.util.List;

/**
 * @Author longbosheng
 * @Date 2022/6/15 15:16
 * @PackageName:com.itheima.service
 * @ClassName: DishService
 * @Description: TODO
 * @Version 1.0
 */
public interface DishService {
    /**
     * 添加菜品
     * @param dish
     * @return
     */
    R addDish(Dish dish);

    /**
     * 更新菜品
     * @param dish
     * @return
     */
    R updateDish(Dish dish);

    /**
     * 删除菜品
     * @return
     */
    R deleteDish(List<String> ids);

    R updateDishStatus(int status, List<String> ids,String updateUser);

    R DropDownList(Dish dish);

    R showDishByName(String name,int page,int pageSize,int type);

    R showDish(int page, int pageSize, int type);

    R selectDishById(String id);
}
